/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * CPainel.java
 *
 * Created on 09/03/2011, 11:16:39
 */

package rpt.bd.cenario;

import java.awt.Color;
import javax.swing.JTabbedPane;

/**
 *
 * @author Roberto
 */
public class CPainel extends javax.swing.JPanel {

    /** Creates new form CPainel */
    public CPainel() {
        initComponents();
        setBackground(new Color(230,230,230));
        setForeground(new Color(0,0,0));
    }

    protected void selecionarProximoTab(
        JTabbedPane aPainelTab, int aIndiceTab, JTabbedPane aPainelTabInterno, int aIndiceTabInterno) {
        aPainelTab.setSelectedIndex(aIndiceTab);
        if (aPainelTabInterno != null)
            aPainelTabInterno.setSelectedIndex(aIndiceTabInterno);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 400, Short.MAX_VALUE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(0, 300, Short.MAX_VALUE)
        );
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    // End of variables declaration//GEN-END:variables

}
